//
//  UIColor+YDMethodSwizzling.m
//  YDBASE
//
//  Created by rowena on 2019/4/22.
//  Copyright © 2019年 wuyezhiguhun. All rights reserved.
//

#import "UIColor+YDMethodSwizzling.h"

//Runtime需要的头文件
#import <objc/runtime.h>


@implementation UIColor (YDMethodSwizzling)

+ (void)load {
    Method sytemMethod = class_getClassMethod([UIColor class], @selector(whiteColor));
    Method customMethod = class_getClassMethod([UIColor class], @selector(yd_whiteColor));
    
    method_exchangeImplementations(sytemMethod, customMethod);
}

+ (UIColor *)yd_whiteColor {
    return [UIColor colorWithRed:255 green:255 blue:255 alpha:1.0]; //[UIColor whiteColor];// [UIColor orangeColor];
}

@end
